package cn.getech.data.development.controller.real;

import cn.getech.data.development.model.vo.RealTimeTaskLogSearchVO;
import cn.getech.data.development.model.vo.RealTimeTaskLogVO;
import cn.getech.data.development.service.RealTimeTaskLogService;
import cn.getech.data.intelligence.common.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@Api(tags = "实时任务操作日志")
@RestController
@RequestMapping("/bdp/realTime/task/log")
public class RealTimeTaskLogController {

    @Autowired
    private RealTimeTaskLogService realTimeTaskLogService;

    @ApiOperation("获取日志分页数据")
    @GetMapping("/logPage")
    @ApiResponses({@ApiResponse(code = 200, message = "Success", response = RealTimeTaskLogVO.class)})
    public R saveAlarm(RealTimeTaskLogSearchVO vo) {
        return realTimeTaskLogService.logPage(vo);
    }


}
